package com.xingkeduo.pojo.query;

import com.xingkeduo.util.pojo.base.BaseQuery;
import com.xingkeduo.util.pojo.enums.BankEnums;
import com.xingkeduo.util.pojo.enums.SexEnum;
import com.xingkeduo.util.pojo.enums.YesNoEnum;
import com.xingkeduo.util.tool.CommonUtil;
import org.apache.ibatis.type.Alias;

import java.util.Set;

/**
 * 求职者账户查询类
 *
 * @author 高杰
 * @time 2018年12月24日 下午3:54:32
 * @description
 */
@Alias("JobseekerSocialQO")
public class JobseekerSocialQO extends BaseQuery<JobseekerSocialQO> {
	private String name;
	private String phone;
	private String nameOrPhone;
	private String idCard;
	private SexEnum sex;
	private Set<SexEnum> sexs;
	private BankEnums bank;
	private String bankCard;
	private YesNoEnum isDelete;

	public String getBankCard() {
		return bankCard;
	}

	public YesNoEnum getIsDelete() {
		return isDelete;
	}

	public JobseekerSocialQO setIsDelete(YesNoEnum isDelete) {
		this.isDelete = isDelete;
		return this;
	}

	public BankEnums getBank() {
		return bank;
	}

	public Set<SexEnum> getSexs() {
		return sexs;
	}

	public void setSexs(Set<SexEnum> sexs) {
		this.sexs = sexs;
	}

	public JobseekerSocialQO setBank(BankEnums bank) {
		this.bank = bank;
		return this;
	}

	public JobseekerSocialQO setBankCard(String bankCard){
		this.bankCard=bankCard;
		return this;
	}

	public boolean isEmpty() {
		if (!isSuperEmpty() || !CommonUtil.isEmpty(name) || !CommonUtil.isEmpty(phone)
				|| !CommonUtil.isEmpty(nameOrPhone) || !CommonUtil.isEmpty(idCard) || sex != null || sexs!=null)
			return false;

		return true;
	}

	public String getName() {
		return name;
	}

	public JobseekerSocialQO setName(String name) {
		this.name = name;
		return this;
	}

	public String getPhone() {
		return phone;
	}

	public JobseekerSocialQO setPhone(String phone) {
		this.phone = phone;
		return this;
	}

	public String getNameOrPhone() {
		return nameOrPhone;
	}

	public JobseekerSocialQO setNameOrPhone(String nameOrPhone) {
		this.nameOrPhone = nameOrPhone;
		return this;
	}

	public String getIdCard() {
		return idCard;
	}

	public JobseekerSocialQO setIdCard(String idCard) {
		this.idCard = idCard;
		return this;
	}

	public SexEnum getSex() {
		return sex;
	}

	public JobseekerSocialQO setSex(SexEnum sex) {
		this.sex = sex;
		return this;
	}
}
